<?php
namespace app\index\model;

use think\Model;

class Member extends Model
{
	protected $insert = ['create_time','password','username'];
	
    protected function setPasswordAttr($value)
    {
        return md5($value);
    }
	protected function setCreateTimeAttr()
    {
        return time();
    }
	protected function setUsernameAttr(){
		return '未认证会员';
	}
	protected function setInviteAttr(){
		return Getinvite();
	}
}